package net.sunofbeach.blog.pojo.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author bing_  @create 2021/12/2-17:37
 */
@Data
@ApiModel(value = "LoopQuery 对象", description = "轮播图查询条件")
public class LoopQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "轮播图标题")
    private String title;

    @ApiModelProperty(value = "状态：0表示不可用，1表示可用；")
    private String state;

    @ApiModelProperty(value = "目标url")
    private String targetUrl;

    /**
     * 注意，这里使用的是String类型，前端传过来的数据无需进行类型转换
     */
    @ApiModelProperty(value = "查询开始时间", example = "2021-11-11 10:10:10")
    private String begin;

    @ApiModelProperty(value = "查询结束时间", example = "2021-11-11 10:10:10")
    private String end;

}
